package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 验收对象 tb_check
 *
 * @author ruoyi
 * @date 2024-09-11
 */
public class Check extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 供货公司id
     */
    @Excel(name = "供货公司id")
    private Long deptId;

    /**
     * 公司用户id
     */
    @Excel(name = "公司用户id")
    private Long userId;

    /**
     * 学校id
     */
    @Excel(name = "学校id")
    private Long schoolId;

    /**
     * 报量单id
     */
    @Excel(name = "报量单id")
    private Long orderId;

    /**
     * 配送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "配送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /**
     * 竞标日志id
     */
    private Long logId;

    /**
     * 0正常 1删除
     */
    @Excel(name = "0正常 1删除")
    private Integer deleted;

    /**
     * 0未验收 1已验收 2待审核
     */
    @Excel(name = "0未验收 1已验收 2待审核")
    private Integer status;

    /**
     * 配送单id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long deliveryId;

    /**
     * detailId
     */
    private Long detailId;

    /**
     * 详情
     */
    private List<CheckDetail> details;

    /**
     * 学校名称
     */
    private String schoolName;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 单号
     */
    private Long deliveryIdSearch;

    /**
     * 查询日期
     */
    private String week;

    public Check() {
    }

    public Check(Long deliveryId, Date sendTime) {
        this.deliveryId = deliveryId;
        this.sendTime = sendTime;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Long getDeliveryIdSearch() {
        return deliveryIdSearch;
    }

    public void setDeliveryIdSearch(Long deliveryIdSearch) {
        this.deliveryIdSearch = deliveryIdSearch;
    }

    public Long getDetailId() {
        return detailId;
    }

    public void setDetailId(Long detailId) {
        this.detailId = detailId;
    }

    public Long getDeliveryId() {
        return deliveryId;
    }

    public void setDeliveryId(Long deliveryId) {
        this.deliveryId = deliveryId;
    }

    public Long getLogId() {
        return logId;
    }

    public void setLogId(Long logId) {
        this.logId = logId;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public List<CheckDetail> getDetails() {
        return details;
    }

    public void setDetails(List<CheckDetail> details) {
        this.details = details;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("schoolId", getSchoolId())
                .append("orderId", getOrderId())
                .append("sendTime", getSendTime())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("deleted", getDeleted())
                .append("status", getStatus())
                .toString();
    }
}
